﻿using System.ComponentModel.DataAnnotations;

namespace Lanbt.Core.Entity.Dto
{
    public class PagesField
    {
        /// <summary>
        /// 页索引
        /// </summary>
        [Range(1, int.MaxValue, ErrorMessage = "页索引不合法")]
        public int PageIndex { get; set; }

        /// <summary>
        /// 页显示条数
        /// </summary>
        [Range(1, int.MaxValue, ErrorMessage = "页显示条数不合法")]
        public int PageSize { get; set; }
    }
}
